package house.entity;

import javax.persistence.Entity;

@Entity
public class User extends BasicEntity{

    private String username;
    private String password;
    private String role;
    private String realName;
    private String phone;
    private String idcode;

    public User() {}
    public User(String username, String password, String role, String realName, String phone, String idcode) {
        this.username = username;
        this.password = password;
        this.role = role;
        this.realName = realName;
        this.phone = phone;
        this.idcode = idcode;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIdcode() {
        return idcode;
    }

    public void setIdcode(String idcode) {
        this.idcode = idcode;
    }
}
